package com.project.nimsen.service;

import java.util.List;
import java.util.Map;

import com.project.jdbc.service.IBaseService;
import com.project.nimsen.dto.RoleDto;
import com.project.nimsen.entity.Role;

public interface IRoleService extends IBaseService {
	/**
	 * 根据编号查询角色信息
	 * */
	Role findById(String id)throws Exception;
	/**
	 * 根据id删除角色信息
	 * */
	boolean deleteById(String id)throws Exception;
	/**
	 * 验证字段是否重复
	 * */
	Map<String, Object> findVilidate(RoleDto dto)throws Exception;
	/**
	 * 根据dto查询角色信息
	 * */
	List<Map<String, Object>> findByDto(RoleDto dto)throws Exception;
}
